package com.wash.framework.utils;

import java.util.UUID;

public class UUIDGenerator
{
  public static String getUUID()
  {
    String s = UUID.randomUUID().toString();

    return s.substring(0, 8).concat(s.substring(9, 13)).concat(s.substring(14, 18)).concat(s.substring(19, 23)).concat(s.substring(24));
  }

  public static String[] getUUID(int number)
  {
    if (number < 1) {
      return null;
    }
    String[] ss = new String[number];
    for (int i = 0; i < number; i++) {
      ss[i] = getUUID();
    }
    return ss;
  }
}